package com.kaifamiao.date1103;

public class MathHelper {
	
	private MathHelper() {
		super();
	}
	
	public static MathHelper getInstance() {
		return new MathHelper();
	}
	
	public long max( long first , long...others ) {
		if( others == null || others.length == 0 ) {
			return first ;
		}
		
		long max = first ;
		for( int i = 0 ; i < others.length ; i++ ) {
			long x = others[ i ];
			if( x > max ) {
				max = x ;
			}
		}
		return max ;
	}

}
